package com.zkjl.protect_business.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(description = "业务分类字段实体")
public class BusinessField {

    @ApiModelProperty(notes = "字段名称")
    @NotNull(message = "字段名称不能为空")
    private String key;

    @ApiModelProperty(notes = "字段类型 string text number month date time list file image")
    private String type;

    @ApiModelProperty(notes = "排序")
    private Integer sort;

    @ApiModelProperty(notes = "宽度")
    private Long width;

    @ApiModelProperty(notes = "查询是否隐藏")
    private Boolean queryHidden = false;

}
